package nl.saxion.ein4b;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Toast;

public class BlackJackActivity extends Activity {
	public static final String PREFS_NAME = "profiles";

	/** Called when the activity is first created. */

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.main);
		Toast.makeText(this, "Press Start Game to start the game!",
				Toast.LENGTH_LONG).show();
	}

	public void openGame(View v) {
		Intent myIntent = new Intent(v.getContext(), ProfileActivity.class);
		startActivityForResult(myIntent, 0);
	}

	public void openRules(View v) {
		Toast.makeText(this, "Rules", Toast.LENGTH_LONG).show();
		Intent myIntent = new Intent(v.getContext(), RuleActivity.class);
		startActivityForResult(myIntent, 0);
		// TODO
	}

	public void openHighScores(View v) {
		Toast.makeText(this, "Highscores", Toast.LENGTH_LONG).show();
		Intent myIntent = new Intent(v.getContext(), HighscoreActivity.class);
		startActivityForResult(myIntent, 0);
		// TODO
	}

	public void exitGame(View v) {
		finish();
	}

}